<!--{eval if(MEMBER_ID == $member[uid]) $_my = '我'; elseif(1==$member[gender]) $_my = '他';else $_my = '她';}-->
<div class="profile">
	{if MEMBER_ID == $member[uid] }
	<div class="edit_art">
		<a href="javascript::" title="修改个人主页顶部图片"
			onclick="showUpload(); return true;"></a>
	</div>
	<div id="uploadImage" style="display: none;">
		<form id="uploadImageForm"
			action="index.php?mod=settings&code=doprofile" method="post"
			enctype="multipart/form-data" target="uploadframe">

			<input type="file" name="image"><input type="submit"
				value="上传" class="btnText" onclick="doUpload();  return true;"><input
				type="hidden" name="home" value="1"><br /> <span
				style="color: #AAA; padding-left: 10px;">建议大小为960像素(长)*300像素(宽)的图片</span>
		</form>
	</div>
	{/if}
	<script type="text/javascript">
	function showUpload(){
		html = '<iframe width="795px" height="350px"src="index.php?mod=settings&code=profile&home=1"></iframe>';
		showDialog('showuploadform', 'local', '上传自定义文件', {html:html}, 800);
		return true;
	}
</script>
	<div class="art">
		<img src="{$member[profile_image]}" /> {if MEMBER_ID == $member[uid]}<a
			href="index.php?mod=settings&code=profile">更换封面</a>{/if}
	</div>
	<div class="avatar">
		<img src="{$member[face_original]}" alt="{$member[nickname]}"
			onerror="javascript:faceError(this);" />
	</div>
	<div class="member_list_top">
		<div class="left_user_info">
			<div class="avatar2_info">
				<style type="text/css">
.dialogue {
	padding: 10px 0 5px;
	color: #999;
}
</style>
				<p class="left_t_nick_name">
					<strong title="{$member[nickname]}">{$member['nickname']}
						{$member['validate_html']} </strong>
					<!--{if $this->Config[level_radio]}-->
					<a class="ico_level wbL{$member[level]}"
						title="等级：{$member[level]}级"
						href="index.php?mod=settings&code=exp" target="_blank">{$member[level]}</a>
					<!--{/if}-->
					<a href="javascript:void(0)"
						onclick="follower_choose({$member[uid]},'{$member[nickname]}','at','');">(@{$member['nickname']})</a>
					<!--备注-->
					<span id="remarklist_{$member[uid]}">{$buddys['remark']}</span>
					<!--备注-->
					<!--{if $member['gender'] == 1}-->
					<img src="images/user.gif" title="先生" />
					<!--{else}-->
					<img src="images/user_female.gif" title="女士" />
					<!--{/if}-->
					<span class="mright"> <a
						href="index.php?mod={$member[username]}&code=follow"
						title="{$member[nickname]}关注的">关注：{$member[follow_count]}</a> <a
						href="index.php?mod={$member[username]}&code=fans"
						title="关注{$member[nickname]}的">粉丝：{$member[fans_count]}</a> <a
						href="index.php?mod={$member[username]}"
						title="{$member[nickname]}的{$this->Config[changeword][n_weibo]}">{$this->Config[changeword][n_weibo]}：{$member[topic_count]}</a>
						<a href="index.php?mod={$member[username]}&type=mydig"
						title="赞过{$member[nickname]}的">被$this->Config['changeword']["dig"]：{$member[digcount]}</a>

					</span>
				</p>
				<p class="left_t2">
					<a href="index.php?mod={$member[username]}">{$__my_link_}</a>
				</p>
				<!--{if $this->Config[company_enable] && $member[company]}-->
				<p class="left_t2">所在{$d_c_name}：{$member[company]}</p>
				<!--{if $this->Config[department_enable] && $member[department]}-->
				<p class="left_t2">所属{$d_d_name}：{$member[department]}</p>
				<!--{/if}-->
				<!--{/if}-->
				{if $member['invite_uid']}
				<p class="left_t2">
					推荐人：
					<!--{eval $_invite_member=jsg_member_info($member['invite_uid']);}-->
					<a href="index.php?mod={$_invite_member['username']}"><span
						title="推荐人：{$_invite_member[nickname]}">{$_invite_member[nickname]}</span></a>
				</p>
				{/if}
				<!-- 关注 拉黑 等操作选项-->
				<!--{if MEMBER_ID && MEMBER_ID!=$member[uid]}-->
				<div id="topic_index_blacklist_{$member[uid]}">
					<!--{if $member[uid] == $list_blacklist[touid]}-->
					<div class="blacklist">
						他在你的黑名单里 <a href="javascript:void(0)"
							onclick="follower_choose({$member[uid]},'{$member[nickname]}','del','topic_black_ajax');">
							[取消拉黑] </a>
					</div>
					<!--{else}-->
					<div class="dialogue">
						{$member[follow_html]} <span> | <a
							href="javascript:void(0)"
							onclick="follower_choose({$member[uid]},'','lahei','topic_black_ajax');">拉黑</a>
							| <!--判断是否是好友--> <!--{if $buddys[id]}--> <a
							href="javascript:void(0)"
							onclick="get_group_choose({$member[uid]});">分组</a> | <a
							href="javascript:void(0)"
							onclick="get_remark({$member[uid]});return false;">备注</a> | <!--{/if}-->
							<a href="javascript:void(0)"
							onclick="follower_choose({$member[uid]},'{$member[nickname]}','buddys','');">推荐给朋友</a>
							| <a href="javascript:void(0)"
							onclick="PmSend({$member[uid]},'{$member[nickname]}');return false;">私信</a>
							<!--判断是否是好友-->
						</span>
						<!--{if MEMBER_ID>0 && 'admin'==MEMBER_ROLE_TYPE && MEMBER_ID!=$member[uid]}-->
						<div style="float: right;">
							<!--<a href="index.php?mod=member&code=delete&id={$member[uid]}" onclick="return confirm('确认删除该用户？');"><font color="red">删除该用户</font></a>&nbsp;&nbsp;|&nbsp;&nbsp;-->
							<a
								href="admin.php?jump_url=admin.php?mod=member&code=dosearch&uid={$member[uid]}"
								target="_blank"><font color="red">删除该用户</font></a>&nbsp;|&nbsp;
							<a href="javascript:void(0);"
								onclick="force_out({$member[uid]});"><font color="red">封杀</font></a>&nbsp;|&nbsp;
							<a href="javascript:void(0);"
								onclick="force_ip('{$member[lastip]}');"><font color="red">封IP</font></a>
						</div>
						<!--{/if}-->

					</div>

					<div id="Pmsend_to_user_area"></div>
					<div id="alert_follower_menu_{$member[uid]}"></div>
					<span id="button_{$member[uid]}"
						onclick="get_group_choose({$member[uid]});"></span>
					<div id="global_select_{$member[uid]}" class="alertBox"
						style="display: none"></div>
					<div id="get_remark_{$member[uid]}"></div>
					<!--{/if}-->
				</div>
				<!--{/if}-->

				<!--{hook/global_usernav_extra1}-->
			</div>
		</div>
	</div>
</div>
<div class="H_profile">
	<div class="boxNav4">
		<!--{eval if(MEMBER_ID == $member[uid]) $_my = '我'; elseif(1==$member[gender]) $_my = '他';else $_my = '她';}-->

		<li
			<!--{if empty($this->Get['type'])||in_array($this->Get['type'],array('pic','video','music','attach','vote','event','forward','first'))}-->class="boxNavselect"<!--{/if}-->><a
			href="index.php?mod={$member[username]}">{$_my}的主页</a></li>
		<li
			<!--{if 'profile' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
			href="index.php?mod={$member[username]}&type=profile">个人资料</a></li>
		<li
			<!--{if in_array($this->Get['type'],array('mycomment','tocomment','mydig','mydigout'))}-->class="boxNavselect"<!--{/if}-->><a
			href="index.php?mod={$member[username]}&type=tocomment">评赞微博</a></li>

		<li
			<!--{if in_array($this->Get['type'],array('photo','photoList','addPhoto','viewPhoto'))}-->class="boxNavselect"<!--{/if}-->><a
			href="index.php?mod={$member[username]}&type=photo">我的相册</a></li>
		<li
			<!--{if in_array($this->Get['type'],array('hot_reply','hot_forward','hot_dig'))}-->class="boxNavselect"<!--{/if}-->><a
			href="index.php?mod={$member[username]}&type=hot_reply">热门微博</a></li>


		<!--{hook/global_index_extra2}-->
	</div>

	<div class="medalwrap">
		<!--{template "medal"}-->
	</div>

</div>

<div class="mainWrap">


	<script language="Javascript">
function listTopic( s , lh ) {	
	var s = 'undefined' == typeof(s) ? 0 : s;
	var lh = 'undefined' == typeof(lh) ? 1 : lh;
	if(lh) {
		window.location.hash="#listTopicArea";
	}
    $("#listTopicMsgArea").html("<div><center><span class='loading'>内容正在加载中，请稍候……</span></center></div>");
	var myAjax = $.post(
		"ajax.php?mod=topic&code=list",
		{
			<!--{loop $params $k $v}-->
			{$k}:"{$v}",
			<!--{/loop}-->
			start:s
		},
		function (d) {
			$("#listTopicMsgArea").html('');
			$("#listTopicArea").html(d);			
		}
	); 
}
</script>
	{template "/photo/main"}

	<!--我的主页-->
	<!--{elseif 'profile' != $this->Get['type']}-->
	<div class="listBox H_myhome">
		<div class="listBoxNav">
			<ul class="boxNav"
				<!--{if !empty($this->Get['type'])&&!in_array($this->Get['type'],array('pic','video','music','attach','vote','event','forward','first'))}-->
				style="display:none;"
				<!--{/if}-->
				>
				<li
					<!--{if empty($this->Get['type'])}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}">全部</a></li>
				<li
					<!--{if 'first' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=first">原创</a></li>
				<li
					<!--{if 'forward' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=forward">转发</a></li>
				<li
					<!--{if 'pic' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=pic">图片</a></li>
				<li
					<!--{if 'video' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=video">视频</a></li>
				<li
					<!--{if 'attach' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=attach">附件</a></li>
				<li
					<!--{if 'vote' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=vote" target="_blank">投票</a></li>
				<li
					<!--{if 'event' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=event" target="_blank">活动</a></li>
			</ul>

			<!--评赞微博-->
			<ul class="boxNav"
				<!--{if !in_array($this->Get['type'],array('mycomment','tocomment','mydig','mydigout'))}-->
				style="display:none;"
				<!--{/if}-->
				>
				<li
					<!--{if 'tocomment' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=tocomment">{$_my}评论的</a></li>
				<li
					<!--{if 'mycomment' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=mycomment">评论{$_my}的</a></li>
				<li
					<!--{if 'mydigout' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=mydigout">{$_my}赞的</a></li>
				<li
					<!--{if 'mydig' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=mydig">赞{$_my}的</a></li>
			</ul>

			<!--热门微博-->
			<ul class="boxNav"
				<!--{if !in_array($this->Get['type'],array('hot_reply','hot_forward','hot_dig'))}-->
				style="display:none;"
				<!--{/if}-->
				>
				<li
					<!--{if 'hot_reply' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=hot_reply">本月热评</a></li>
				<li
					<!--{if 'hot_forward' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=hot_forward">本月热转</a></li>
				<li
					<!--{if 'hot_dig' == $this->Get['type']}-->class="boxNavselect"<!--{/if}-->><a
					href="index.php?mod={$member[username]}&type=hot_dig">本月热赞</a></li>
			</ul>
		</div>
		<div id="ajax_recommend"></div>
		<div id="ajax_reminded"></div>
		<div id="listTopicMsgArea"></div>
		<div id="listTopicArea">
			<!--微博列表 Begin-->
			<!--{eval $pagehtml_not = true;}-->
			<!--{subtemplate topic_list_ajax}-->
			<!--微博列表 End-->
			<div id="ajaxtopic"></div>
			<div id="pageinfo"></div>
			<div id="pagehtml">
				<!--{if $page_arr[html]}-->
				<div class="pageStyle">
					<li>{$page_arr[html]}</li>
				</div>
				<!--{/if}-->
			</div>
		</div>
	</div>

	<!--个人资料-->




	<!--{else}-->
	<div class="listBox H_listBox">
		<div class="set_warp">
			<div class="Menulink">
				<ul>
					<a href="" class="selected">{$_my}的资料</a>
				</ul>
			</div>
			<table width="100%" border="0">
				<tbody>
					<!--{if $member_info[nickname]}-->
					<tr>
						<td width="110" align="right" valign="middle">帐户/昵称：</td>
						<td>{$member_info[nickname]}</td>
					</tr>
					<!--{/if}-->
					<!--{if $member_info[province]}-->
					<tr>
						<td width="110" align="right" valign="middle">所在地区：</td>
						<td>{$member_info[province]} {$member_info[city]}
							{$member_info[area]} {$member_info[street]}</td>
					</tr>
					<!--{/if}-->
					<!--{if $member_info[aboutme]}-->
					<tr>
						<td width="110" align="right" valign="middle">自我介绍：</td>
						<td>{$member_info[aboutme]}</td>
					</tr>
					<!--{else}-->
					<tr>
						<td width="110" align="right" valign="middle">自我介绍：</td>
						<td>{$_my}好神秘，什么都没有留下!</td>
					</tr>
					<!--{/if}-->
				</tbody>
			</table>
			<!--{loop $groupProfile $group}-->
			<!--{if $group['isProfile']}-->
			<div class="Menulink">
				<ul>
					<a href="" class="selected">{$group[title]}</a>
				</ul>
			</div>
			<table width="100%" border="0">
				<tbody>
					<!--{loop $group[list] $one}-->

					<!--{if (MEMBER_ID == $member_info[uid]) || ($memberProfileSet[$one['fieldid']]<1) || ($memberProfileSet[$one['fieldid']]<2 && $buddys[id])}-->
					<!--{if $member_info[$one['fieldid']]}-->

					<tr>
						<td width="110" align="right" valign="middle">{$one[title]}：</td>
						<td>{$member_info[$one['fieldid']]}</td>
					</tr>
					<!--{/if}-->
					<!--{/if}-->
					<!--{/loop}-->
				</tbody>
			</table>
			<!--{/if}-->
			<!--{/loop}-->


		</div>
	</div>
	<!--{/if}-->


</div>

<script type="text/javascript">  if(isLoading){$('#pageinfo').html('');$("#pagehtml").hide();}var ajaxkeys = new Array();var onloading = false;var ajaxnum = 0;
  <!--{loop $ajaxkey $key $val}-->
  ajaxkeys[{$key}] = '{$val}';
  <!--{/loop}-->
  $(window).bind('scroll resize',function(event){if(isLoading && !onloading){var bodyTop = document.documentElement.scrollTop + document.body.scrollTop;if(bodyTop+$(window).height() >= ($('#listTopicArea').height()+300)){loadtopic(ajaxkeys[ajaxnum]);}}});
</script>




	{template "/photo/pub"}


